﻿@model Planisoft.Entities.ConfiguraTrabajador

@{
	ViewBag.Title = "Edit";
}

@section js{
	<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
	
	<script type="text/javascript" >
		$(function () {
			$("input:submit, a, button", ".boton").button();
			$("a", ".boton").click();
		})

		

	</script>
	}

<h2>Edición de Configuración de Trabajador</h2>

@using (Html.BeginForm()) {
	@Html.ValidationSummary(true)
	<fieldset>
		<legend>Configura Trabajador</legend>

		<div class="editor-label" hidden="hidden" >
			@Html.LabelFor(model => model.IdConfigura)
		</div>
		<div class="editor-field" hidden="hidden">
			@Html.EditorFor(model => model.IdConfigura)
			@Html.ValidationMessageFor(model => model.IdConfigura)
		</div>

		  
		<fieldset style="width:50%" > <legend>Trabajador :</legend> 
			
		<div class="editor-field">
			@Html.DropDownList("IdTrabajador")
			@Html.ValidationMessageFor(model => model.IdTrabajador)
		</div>
		
		</fieldset>
		
		<fieldset> <legend>Configuraciones</legend>
		
		<fieldset style="width:50%; float:left; margin-right: 15px;"> <legend>S.C.T.R.</legend> 
			<fieldset style="width:auto; float:left; "> <legend>Salud</legend>
				<div class="editor-field">
					@Html.RadioButtonFor(model => model.IndEps,"S",true)ESSALUD                    
					@Html.RadioButtonFor(model => model.IndEps,"E",false)EPS
					@Html.ValidationMessageFor(model => model.IndEps)
				</div>
				<div class="editor-label">
					@Html.Label("EPS")
				</div>
				<div class="editor-field">
					@Html.DropDownList("IdEps")
					@Html.ValidationMessageFor(model => model.IdEps)
				</div>
			</fieldset>
			<fieldset style="width:auto; float:left; "> <legend>Pensión</legend>
				<div class="editor-field">
					 @Html.RadioButtonFor(model => model.SctrPension,"N",true)Ninguno
					 @Html.RadioButtonFor(model => model.SctrPension,"O",true)ONP
					 @Html.RadioButtonFor(model => model.SctrPension,"P",false)Privado
					 @Html.ValidationMessageFor(model => model.SctrPension)  
				</div>                
			</fieldset>
		</fieldset> 

		<div class="editor-label">
			@Html.Label("Tipo Trabajador")
		</div>
		<div class="editor-field">
			@Html.DropDownList("IdTipoTrabajPension")
			@Html.ValidationMessageFor(model => model.IdTipoTrabajPension)
		</div>

		<div class="editor-label" hidden="hidden" >
			@Html.LabelFor(model => model.RegLaboral)
		</div>
		<div class="editor-field" hidden="hidden">
			<input id="RegLaboral" class="text-box single-line" type="text" value="X" name="RegLaboral">
			@*@Html.EditorFor(model => model.RegLaboral,"true")*@
			@Html.ValidationMessageFor(model => model.RegLaboral)
		</div>
		<fieldset style="width:auto; float:left; margin-right:20px;"> <legend>Discapacidad</legend>
			<div class="editor-field">
				 @Html.RadioButtonFor(model => model.Discapacidad, "True", true)SI
				 @Html.RadioButtonFor(model => model.Discapacidad, "False", false)NO              
				 @Html.ValidationMessageFor(model => model.Discapacidad)
			</div>
		</fieldset>
		<fieldset style="width:auto; float:left;"> <legend>Essalud Vida</legend>
			<div class="editor-field">
				@Html.RadioButtonFor(model => model.SctrSalud, "S", true)SI
				@Html.RadioButtonFor(model => model.SctrSalud, "N", false)NO              
				@Html.ValidationMessageFor(model => model.SctrSalud)
			</div>
		</fieldset>

			<div class="editor-label" hidden = "hidden">
				@Html.LabelFor(model => model.TipoJornada)
			</div>
			<div class="editor-field" hidden = "hidden">
				<input id="TipoJornada" class="text-box single-line" type="text" value="X" name="TipoJornada">
				@*@Html.EditorFor(model => model.TipoJornada,"")*@
				@Html.ValidationMessageFor(model => model.TipoJornada)
			</div>

		 <br />
		 <br />
		 <br />
		 <br />
		 <br />
		 <br />
		 <br />
		 <br />

		<fieldset style="width:50%; float:left"> <legend>Autoriza Descuento 5ta Categoria? </legend>
			<div class="editor-field">
				@Html.RadioButtonFor(model => model.InfQuinta, "N",true)NO
				@Html.RadioButtonFor(model => model.InfQuinta, "Q",true )15%    
				@Html.RadioButtonFor(model => model.InfQuinta, "V", true)21%              
				@Html.RadioButtonFor(model => model.InfQuinta, "T", false)30%                 
				@Html.ValidationMessageFor(model => model.InfQuinta)
			</div>
		</fieldset>
		<div class="editor-label" hidden="hidden">
			@Html.LabelFor(model => model.SituaEsp)
		</div>
		<div class="editor-field" hidden="hidden">
			<input id="SituaEsp" class="text-box single-line" type="text" value="X" name="SituaEsp">
			@*@Html.EditorFor(model => model.SituaEsp,"N")*@
			@Html.ValidationMessageFor(model => model.SituaEsp)
		</div>
		<fieldset> <legend>Tipo de Pago</legend> 
			<div class="editor-field">
				@Html.RadioButtonFor(model => model.TipoPago,"E",true)Efectivo
				@Html.RadioButtonFor(model => model.TipoPago,"D",false)Deposito en Cuenta
				@Html.ValidationMessageFor(model => model.TipoPago)
			</div>
		</fieldset>

		<div class="editor-label" hidden="hidden">
			@Html.LabelFor(model => model.Sindicalizado)
		</div>
		<div class="editor-field" hidden="hidden">
			<input id="Sindicalizado" class="text-box single-line" type="text" value="X" name="Sindicalizado">
			@*@Html.EditorFor(model => model.Sindicalizado,"N")*@
			@Html.ValidationMessageFor(model => model.Sindicalizado)
		</div>
		<fieldset> <legend>Régimen PEnsionario</legend>
			<div class="editor-field">
				@Html.DropDownList("IdRegPensionario")
				@Html.ValidationMessageFor(model => model.IdRegPensionario)
			</div>
		</fieldset>
		<p class="boton">
			<input type="submit" value="Actualizar" />
			@Html.ActionLink("Retornar", "Index")		
		</p>

		
		
		</fieldset>


		@*<div class="editor-label">
			@Html.LabelFor(model => model.IdTrabajador)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.IdTrabajador)
			@Html.ValidationMessageFor(model => model.IdTrabajador)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.IdTipoTrabajPension)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.IdTipoTrabajPension)
			@Html.ValidationMessageFor(model => model.IdTipoTrabajPension)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.IdEps)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.IdEps)
			@Html.ValidationMessageFor(model => model.IdEps)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.RegLaboral)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.RegLaboral)
			@Html.ValidationMessageFor(model => model.RegLaboral)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.Discapacidad)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Discapacidad)
			@Html.ValidationMessageFor(model => model.Discapacidad)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.SctrSalud)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.SctrSalud)
			@Html.ValidationMessageFor(model => model.SctrSalud)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.SctrPension)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.SctrPension)
			@Html.ValidationMessageFor(model => model.SctrPension)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.IndEps)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.IndEps)
			@Html.ValidationMessageFor(model => model.IndEps)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.TipoJornada)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.TipoJornada)
			@Html.ValidationMessageFor(model => model.TipoJornada)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.InfQuinta)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.InfQuinta)
			@Html.ValidationMessageFor(model => model.InfQuinta)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.SituaEsp)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.SituaEsp)
			@Html.ValidationMessageFor(model => model.SituaEsp)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.TipoPago)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.TipoPago)
			@Html.ValidationMessageFor(model => model.TipoPago)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.Sindicalizado)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Sindicalizado)
			@Html.ValidationMessageFor(model => model.Sindicalizado)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.IdRegPensionario)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.IdRegPensionario)
			@Html.ValidationMessageFor(model => model.IdRegPensionario)
		</div>

		<p>
			<input type="submit" value="Save" />
		</p>*@
	</fieldset>
}


